package com.mysiteforme.admin.entity.publish;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldStrategy;
import com.mysiteforme.admin.base.DataEntity;

/**
 * <p>
 * 供需信息表
 * </p>
 *
 * @author wangl
 * @since 2019-09-18
 */
@TableName("electricity_supply")
public class ElectricitySupply extends DataEntity<ElectricitySupply> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableField("supply_id")
	private String supplyId;
	
	@TableField(exist=false)
    private String stringId;

	/**
     * 市场类型
     */
    @TableField("market_type")
    protected String marketType;

    public String getMarketType() {
		return marketType;
	}

	public void setMarketType(String marketType) {
		this.marketType = marketType;
	}

	public String getStringId() {
		return stringId;
	}

	public void setStringId(String stringId) {
		this.stringId = stringId;
	}
    /**
     * 成员id
     */
	@TableField("user_id")
	private String userId;
    /**
     * 成员类型（继承于成员表）
     */
	@TableField("user_type")
	private String userType;
    /**
     * 所在地（继承于成员表）
     */
	private String city;
    /**
     * 交易类型
     */
	@TableField("business_type")
	private String businessType;
    /**
     * 交易时效
     */
	@TableField("business_cycle")
	private String businessCycle;
    /**
     * 淘电品种
     */
	@TableField("amoy_type")
	private String amoyType;
    /**
     * 淘电开始时间
     */
	@TableField("amoy_begintime")
	private Date amoyBegintime;
    /**
     * 淘电结束时间
     */
	@TableField("amoy_endtime")
	private Date amoyEndtime;
    /**
     * 淘电量（MWh）
     */
	@TableField("amoy_value")
	private BigDecimal amoyValue;
    /**
     * 淘电价
     */
	@TableField("amoy_price")
	private BigDecimal amoyPrice;
    /**
     * 发布时间
     */
	@TableField("publish_time")
	private Date publishTime;
    /**
     * 交易时效（分钟）
     */
	@TableField("business_time")
	private Integer businessTime;
    /**
     * 审核状态
     */
	@TableField("auditing_statu")
	private String auditingStatu;
    /**
     * 是否被购买过
     */
	private String isbuying;
    /**
     * 总淘电量
     */
	@TableField("amoy_value_sum")
	private BigDecimal amoyValueSum;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 结算价
     */
	@TableField("account_price")
	private BigDecimal accountPrice;

	public String getSupplyId() {
		return supplyId;
	}

	public void setSupplyId(String supplyId) {
		this.supplyId = supplyId;
	}
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}
	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}
	public String getBusinessType() {
		return businessType;
	}

	public void setBusinessType(String businessType) {
		this.businessType = businessType;
	}
	public String getBusinessCycle() {
		return businessCycle;
	}

	public void setBusinessCycle(String businessCycle) {
		this.businessCycle = businessCycle;
	}
	public String getAmoyType() {
		return amoyType;
	}

	public void setAmoyType(String amoyType) {
		this.amoyType = amoyType;
	}
	public Date getAmoyBegintime() {
		return amoyBegintime;
	}

	public void setAmoyBegintime(Date amoyBegintime) {
		this.amoyBegintime = amoyBegintime;
	}
	public Date getAmoyEndtime() {
		return amoyEndtime;
	}

	public void setAmoyEndtime(Date amoyEndtime) {
		this.amoyEndtime = amoyEndtime;
	}
	public BigDecimal getAmoyValue() {
		return amoyValue;
	}

	public void setAmoyValue(BigDecimal amoyValue) {
		this.amoyValue = amoyValue;
	}
	public BigDecimal getAmoyPrice() {
		return amoyPrice;
	}

	public void setAmoyPrice(BigDecimal amoyPrice) {
		this.amoyPrice = amoyPrice;
	}
	public Date getPublishTime() {
		return publishTime;
	}

	public void setPublishTime(Date publishTime) {
		this.publishTime = publishTime;
	}
	public Integer getBusinessTime() {
		return businessTime;
	}

	public void setBusinessTime(Integer businessTime) {
		this.businessTime = businessTime;
	}
	public String getAuditingStatu() {
		return auditingStatu;
	}

	public void setAuditingStatu(String auditingStatu) {
		this.auditingStatu = auditingStatu;
	}
	public String getIsbuying() {
		return isbuying;
	}

	public void setIsbuying(String isbuying) {
		this.isbuying = isbuying;
	}
	public BigDecimal getAmoyValueSum() {
		return amoyValueSum;
	}

	public void setAmoyValueSum(BigDecimal amoyValueSum) {
		this.amoyValueSum = amoyValueSum;
	}
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}


	public BigDecimal getAccountPrice() {
		return accountPrice;
	}

	public void setAccountPrice(BigDecimal accountPrice) {
		this.accountPrice = accountPrice;
	}

	@Override
	public String toString() {
		return "ElectricitySupply{" +
			", supplyId=" + supplyId +
			", userId=" + userId +
			", userType=" + userType +
			", city=" + city +
			", businessType=" + businessType +
			", businessCycle=" + businessCycle +
			", amoyType=" + amoyType +
			", amoyBegintime=" + amoyBegintime +
			", amoyEndtime=" + amoyEndtime +
			", amoyValue=" + amoyValue +
			", amoyPrice=" + amoyPrice +
			", publishTime=" + publishTime +
			", businessTime=" + businessTime +
			", auditingStatu=" + auditingStatu +
			", isbuying=" + isbuying +
			", amoyValueSum=" + amoyValueSum +
			", createTime=" + createTime +
			", accountPrice=" + accountPrice +
			"}";
	}

	/**
	 * 企业名称
	 */
	@TableField(exist = false)
	private String companyName;
	/**
	 * 经办人
	 */
	@TableField(exist = false)
	private String managerName;
	/**
	 * 经办人电话
	 */
	@TableField(exist = false)
	private String managerPhone;

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getManagerName() {
		return managerName;
	}

	public void setManagerName(String managerName) {
		this.managerName = managerName;
	}

	public String getManagerPhone() {
		return managerPhone;
	}

	public void setManagerPhone(String managerPhone) {
		this.managerPhone = managerPhone;
	}
}
